package com.zhuqi.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhuqi
 * @version 1.0
 * @date 2021/3/26 17:28
 */
@RestController
public class TestController {

    @GetMapping("test1")
    @PreAuthorize("hasAnyAuthority('sys:add','sys:test')")
    public String test1(){
        return "test1";
    }
}
